﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Ozner.Common
{
    /// <summary>
    /// 网页表格查询返回的数据
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class JsonBaseResult<T>:BaseResult<T>
    {
        /// <summary>
        /// 成功/失败
        /// </summary>
        public string Success { get; set; } = "true";
        /// <summary>
        /// 失败的附加消息
        /// </summary>
        public string message { get; set; }
        public string new_id { get; set; }
        public string extradata { get; set; }
        public string IsTimeOut { get; set; }
        /// <summary>
        /// 总页数，JSON中的total字段
        /// </summary>
        public int PageTotal { get; set; }
        /// <summary>
        /// 当前页,JSON中的page字段
        /// </summary>
        public int Page { get; set; }
        /// <summary>
        /// 总记录数,JSON中的Total字段
        /// </summary>
        public int Total { get; set; }
        private List<T> rows = new List<T>();
        /// <summary>
        /// 获取到的记录集
        /// </summary>
        public List<T> Rows { get { return rows; } }

    }
}
